package com.wh.org.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wh.org.dto.ShopDto;
import com.wh.org.pojo.Shop;
import com.wh.org.pojo.ShopAuditLog;

import java.util.List;

public interface IShopService {

    void add(Shop shop);
    void del(Long id);

    void upd(Long id);

    List<Shop> findAll();
    Shop findById(Long id);
    //批量删除
    void patchDel(Long[] ids);
    IPage<Shop> findByPage(ShopDto shopDto);

    /*
    * 店铺入驻的业务逻辑
    * */
    void settlement(Shop shop);

    /**
     * 审核通过
     */
    void auditPass(ShopAuditLog shopAuditLog);

    void auditReject(ShopAuditLog shopAuditLog);

    void updateState(Shop shop);
}
